<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--       
*     Copyright © 2007 Sun Microsystems, Inc. All rights reserved.
*     Use is subject to license terms.
-->
<html>
<head>
<title>Running a JavaFX Application</title>
<link rel="StyleSheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
</head>
<body>
<h2>Running a JavaFX Application</h2>
<p> <small><a href="#seealso">See Also</a></small>
<p>With JavaFX projects, you typically have one project that contains the application's main 
    class and several projects containing class libraries. You can run the main
project or run any individual project that contains an executable class. There are four different ways  you can  run your JavaFX application from the IDE: 
<ul>
<li>as a  standalone application</li>
<li>using the Java Web Start</li>
<li> running  in a local web browser</li>
<li> running  in the bundled Mobile Emulator (available on Microsoft Windows platform only)</li>
</ul>
 See <a href="../deploy/javafx_deploy_prep.html">Preparing JavaFX Applications for Deployment</a> for more detailed information. </p>
<p><b>To run the main project:</b>
<ul>
  <li>Choose Run  &gt; Run Main 
    Project (F6) in the main menu. By default, the IDE uses the standard execution model and runs the project as a standalone application.</li>
</ul>
<p><b>To run an individual project:</b>
<ul>
  <li>Right-click the project's node in the Projects window and choose Run Project.</li>
</ul>
<ul class="note">
    <li> If you run a project for which you have not specified a main class,
    	the  IDE prompts you for the main class. You can change this setting in
    	the Run panel of the project's Project Properties dialog box.
    	Each project can only contain one main class. </td>
</li>
</ul>
<p>&nbsp;</p>
<!--todo : verify accuracy for FF projects-->

<dl>
    <dt><a name="seealso">See Also</a></dt>
<!--   <dd><a href="javafx_run_quickref.html">Running Tasks: Quick Reference</a></dd>  
    <dd><a href="javafx_run_file.html">Running a Single File</a></dd> -->
    <dd><a href="javafx_run_args.html">Setting the Main JavaFX Class and Runtime Arguments</a></dd>
    <dd></dd>
</dl>


<hr><small><a href="../credits.html">Legal Notices</a></small>

<table border="0" cellpadding="20">
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
</table></body>
</html>
